﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Confirm.ascx.vb" Inherits="UserControls_Confirm" %>

<style type="text/css">
    #p1<%=Me.ID %>
    {    	background:#FFF; 
         	border:solid 2px #000; 
         	padding:4px 4px 4px 4px; 
         	text-align:center;
            position: relative;
            display:table; 
   
        	}
 #container<%=Me.ID %> {
    width:<%=Me.Largura%>px; 
    height:<%=Me.Altura%>px; 
 /*border: 1px solid Blue;*/
 position: relative;
 display:table; 
 }
#container<%=Me.ID %> p {
 *position: absolute; 
 top: 50%; 
 display: table-cell; 
 vertical-align: middle;
 }
#container<%=Me.ID %> span {
 display:block; 
 *position: relative; 
 top: -50%;
 }
</style>

<script type="text/javascript" language="javascript">
    var idConfirm<%=Me.ID %> = '<%=m1.clientID%>';

    function Abrir<%=Me.ID %>() {
        var Confirm = $find(idConfirm<%=Me.ID %>);
        Confirm.show();

    }
    function Fechar<%=Me.ID %>() {
        var Confirm = $find(idConfirm<%=Me.ID %>);
        Confirm.hide();
    }
</script>

        <ajax:ModalPopupExtender ID="m1" runat="server" 
            Enabled="True" 
            TargetControlID="hdn1" 
            PopupControlID="pn01" 
            PopupDragHandleControlID="pn01">
        </ajax:ModalPopupExtender>

	    <asp:HiddenField ID="hdn1" runat="server" />
	    <asp:Panel ID="pn01" runat="server" SkinID="modal">
            <div id="p1<%=Me.ID %>">
            <asp:UpdatePanel runat="server" ID="upd" UpdateMode="Conditional">
            <ContentTemplate>
                    <div id="container<%=Me.ID %>">
                    <p><span>
                    <asp:Literal ID="lit" runat="server" EnableViewState="false"></asp:Literal>
                    <br /><br />
                        <asp:Button ID="btSim" runat="server" Visible="false" Text="Sim" />
                        <asp:Button ID="btNao" runat="server" Visible="false" Text="Não" />
                        <asp:Button ID="btOK" runat="server" Visible="true" Text="OK" />
                    </span>
                    </p>
                    </div> 
                </ContentTemplate>
            </asp:UpdatePanel>
         </div>
        </asp:Panel>
